package com.zhiy.com.estation;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.view.View;

/**
 * Created by Zyh on 2016/12/5.
 */
public class Broadcast extends BroadcastReceiver {
    public Broadcast(OnLoginListener listener) {
        this.listener = listener;
    }
    @Override
    public void onReceive(Context context, Intent intent) {
        if (listener!=null){
            listener.setLoginState();
        }
    }
    OnLoginListener listener;
    public interface OnLoginListener{
        void setLoginState();
    }
}
